Skip to content

unify auth cookie persistence#188

Merged
chriscarrollsmith merged 1 commit into
mainfrom
fix/187-unify-auth-cookie-persistence
Jun 7, 2026
Merged

unify auth cookie persistence#188
chriscarrollsmith merged 1 commit into
mainfrom
fix/187-unify-auth-cookie-persistence

Conversation

@rafizamankhan

Copy link
Copy Markdown
Contributor

Wires the login “Remember Me” checkbox into auth cookie lifetime: unchecked logins get session cookies with a 12-hour refresh token, while checked logins get persistent cookies aligned to the existing 30-day refresh TTL. Cookie handling is centralized in set_auth_cookies() / clear_auth_cookies(), and the persistent flag is preserved through token rotation on /refresh and silent refresh via NeedsNewTokens. All auth paths keep httponly, secure, and samesite settings unchanged.

Resolves #187

@rafizamankhan rafizamankhan self-assigned this Jun 5, 2026
@chriscarrollsmith chriscarrollsmith merged commit d4fec23 into main Jun 7, 2026
2 checks passed
@chriscarrollsmith chriscarrollsmith deleted the fix/187-unify-auth-cookie-persistence branch June 7, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize auth cookie persistence and wire Remember Me on login

2 participants